<?php
require '../../packages/connect_database.php';
mysql_select_db("auction");
$query = mysql_query("SELECT heightest_price,phone FROM room" . $_GET["room"]);
$result = mysql_fetch_row($query);
if($result[0] == 0)
	mysql_query("UPDATE room" . $_GET["room"] . " SET heightest_price = " . ($_GET["start_price"] + 500) . " WHERE phone = '" . $result[1] . "'");
else
	mysql_query("UPDATE room" . $_GET["room"] . " SET heightest_price = " . ($result[0] + 500) . " WHERE phone = '" . $result[1] . "'");
